package com.huawei.hms.support.hianalytics;

import android.content.Context;
import android.text.TextUtils;
import java.util.HashMap;
import java.util.Map;

public class a {
    protected static Map<String, String> getMapForBi(Context context, String str) {
        Map<String, String> hashMap = new HashMap();
        if (!(context == null || TextUtils.isEmpty(str))) {
            String[] split = str.split("\\.");
            if (split.length >= 2) {
                Object obj = split[0];
                Object obj2 = split[1];
                hashMap.put(HiAnalyticsConstant.BI_KEY_SERVICE, obj);
                hashMap.put("apiName", obj2);
                hashMap.put(HiAnalyticsConstant.BI_KEY_PACKAGE, context.getPackageName());
                hashMap.put("baseVersion", String.valueOf(30003300));
                hashMap.put("callTime", String.valueOf(System.currentTimeMillis()));
            }
        }
        return hashMap;
    }
}
